package org.xenon.vote.model.pojo.po;

import javax.validation.constraints.NotNull;

/**
 * 一场投票的一轮
 */

public class Turn {
    /**
     * 序列号, 唯一主键
     */
    @NotNull(message = "id.null")
    private int id;

    /**
     * 在一场投票中的场次
     */
    @NotNull(message = "order.null")
    private int order;

    /**
     * 所属的投票ID
     */
    @NotNull(message = "countId.null")
    private int ballot;

    /**
     * 本轮选出的人数
     */
    @NotNull(message = "limit.null")
    private int limit;

    /**
     * 本轮选出的人数
     */
    @NotNull(message = "limit.null")
    private int option;

    public Turn(@NotNull(message = "id.null") int id,
                @NotNull(message = "order.null") int order,
                @NotNull(message = "countId.null") int ballot,
                @NotNull(message = "limit.null") int limit,
                @NotNull(message = "limit.null") int option) {
        this.id = id;
        this.order = order;
        this.ballot = ballot;
        this.limit = limit;
        this.option = option;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public int getBallot() {
        return ballot;
    }

    public void setBallot(int ballot) {
        this.ballot = ballot;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int getOption() {
        return option;
    }

    public void setOption(int option) {
        this.option = option;
    }
}
